﻿using Microsoft.Extensions.DependencyInjection.Extensions;
using System;
using TianShu.Modularity;
using TianShu.Office.Abstractions;

namespace TianShu.Office
{
    [DependsOn(typeof(AbpOfficeAbstractionsModule))]
    public class AbpOfficeModule:AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.TryAddTransient(typeof(IExcelService), typeof(ExcelServiceImpl));
            context.Services.TryAddTransient(typeof(IExcelReadService), typeof(ExcelServiceImpl));
            context.Services.TryAddTransient(typeof(IExcelWriteService), typeof(ExcelServiceImpl));
        }
    }
}
